module teapo.app {
export class Application {
tests: tests.TestPage = null;
constructor(private _host: HTMLElement) {
this._startBoot();
}
private _startBoot() {
if (earlyElement) {
earlyElement.textContent = 'Loading test list...';
}
setTimeout(() => {this.tests = new tests.TestPage();
setTimeout(() => {if (earlyElement) {
earlyElement.textContent = 'Rendering...';
}
this._completeBoot();
}, 10); }, 10);}
private _completeBoot() {
if (earlyElement && earlyElement.parentElement) {
earlyElement.parentElement.removeChild(earlyElement);
}
ko.renderTemplate('Application', this, null, this._host);
}
}
}